using NHibernate.Validator.Constraints;
using SharpArch.Core.PersistenceSupport;
using SharpArch.Core.DomainModel;
using System;

namespace GoldenBicycleCompany.Core
{
    public class CustomerAddress : Entity
    {
        public CustomerAddress() { }
		
		[NotNull]
		public virtual Customer Customer { get; set; }

		[DomainSignature]
		[NotNullNotEmpty]
		public virtual string Address1 { get; set; }

		public virtual string Address2 { get; set; }

		[DomainSignature]
		[NotNullNotEmpty]
		public virtual string City { get; set; }

		[DomainSignature]
		[NotNullNotEmpty]
		public virtual string State { get; set; }

		[DomainSignature]
		[NotNullNotEmpty]
		public virtual string ZipCode { get; set; }
    }
}
